{extend name="layout/main" /}

{block name="header"}

{/block}

{block name="content"}
<section class="panel">
    <header class="panel-heading">
        <h4>订单列表</h4>
    </header>
    <div class="panel-body" style="padding-bottom: 50px">
       <!-- <form class="form-horizontal" action="">
            <div class="form-group">
                <div class="col-xs-3">
                    <input type="text" value="" name="search" class="form-control"
                           placeholder="请输入搜索内容">
                </div>

                <div class="col-xs-2 no-pd-r">
                    <select name="type" class="form-control">
                        <option {if $Request.get.type == 'nick_name'} selected {/if}   value="mobile">买家账号</option>
                        <option {if $Request.get.type == 'number'} selected {/if}   value="number">购买数量</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-color">搜索</button>
            </div>
        </form>-->
        <table class="table table-bordered table-striped no-margin">
            <thead>
            <tr>
                <th class="text-center">ID</th>
                <th class="text-center">买家账号</th>
                <th class="text-center">商品名称</th>
                <th class="text-center">数量</th>
                <th class="text-center">付款金额</th>
                <th class="text-center">订单时间</th>
            </tr>
            </thead>
            <tbody>
            {if !empty($lists)}
            {foreach $lists as $key=> $entity}
            <tr>
                <td class="text-center">{$key+1}</td>
                
                <td class="text-center">{$entity.mobile}</td>
                <td class="text-center">{$entity.name}</td>
                <td class="text-center">{$entity.number}</td>
                <td class="text-center">{$entity.money}</td>
                <td class="text-center">{:date('Y-m-d H:i:s',$entity.create_time)}</td>
            </tr>
            {/foreach}
            {else /}
            <tr class="text-center">
                <td colspan="5">暂无数据</td>
            </tr>
            {/if}
            </tbody>
        </table>
        <div class="page">
            {:htmlspecialchars_decode($lists->render())}
        </div>
    </div>
</section>
{/block}


{block name="footer"}
    <script>
        function showContent(e){
            $.dialog({
                title: '商品信息',
                content: $(e).attr('data-content')
            });
        }
    </script>
{/block}